package com.lujianfei.httprequest.retrofit_okhttp;

import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface RequestInterface {
    @GET("/s")
    fun getBaidu(@Query("wd") keywords:String): Call<ResponseBody>
    @POST("/s")
    fun postBaidu(@Body keywords: RequestBody):Call<ResponseBody>
}
